/**
 * @Date 2025/3/19 8:56
 * @Created by 衡盛永
 */

package com.shangting.web.annotation;

import lombok.Data;

import java.util.Date;

/**
 * 定义一个实体类entity
 */
//@Data
@AnnotationClass("User 实体类")
class User {
    @AnnotationProperty(value = "姓名")
    private String userName;

    @AnnotationProperty(value = "用户id")
    private Long userId;

    @AnnotationProperty(value = "登录时间")
    private Date loginTime;

    @AnnotationMethod("设置姓名")
    public void setUserName(@AnnotationParameter("姓名参数") String userName) {
        this.userName = userName;
    }
}
